package gatewayDemo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class CommandService implements CommandLineRunner {
    @Autowired
    NacosDynamicRouteService nacosDynamicRouteService;

    @Override
    public void run(String... args) throws Exception {
        System.out.println("最后初始化Route配置  --->");
        nacosDynamicRouteService.initRoute();
    }
}
